﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Taobao.Tools2.Domain.EntityFramework.Mappings;

namespace Taobao.Tools2.Domain.EntityFramework
{
    public class DistributorMapping : ModelMapping<Distributor>
    {
        public DistributorMapping()
            : base()
        {
            Map(d => d.ToTable("Distributor"));
            Property(c => c.UserID).HasColumnName("user_id");
            Property(c => c.Created).HasColumnName("created");
            Property(c => c.AlipayAccount).HasColumnName("alipay_account");
            Property(c => c.ContactPerson).HasColumnName("contact_person");
            Property(c => c.DistributorID).HasColumnName("distributor_id");
            Property(c => c.Name).HasColumnName("distributor_name");
            Property(c => c.Email).HasColumnName("email");
            Property(c => c.MobilePhone).HasColumnName("mobile_phone");
            Property(c => c.Phone).HasColumnName("phone");
            Property(c => c.ShopWebLink).HasColumnName("shop_web_link");
            HasKey(c => c.ID);

        }
    }
}
